@import '../../assets/less/common.less';

.hm-page {
  box-sizing: border-box;
  min-height: 100vh;
  background-color: #F9F7F7;

  &.my {

    .page-bar-wrap {
      background-color: #fff;

    }

    .member-card {
      width: 750rpx;
      height: 296rpx;
      background-color: orange;
      border-bottom-left-radius: 140rpx;
      border-bottom-right-radius: 140rpx;
      .hm-img("@{baseUrl}/my/card.png");
      background-size: 100% 100%;

      .top {
        height: 180rpx;
        // background-color: red;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0 40rpx;
        box-sizing: border-box;

        .avatar {
          width: 104rpx;
          height: 104rpx;
          border-radius: 50%;
          border: 1px solid #DCDCDC;
          background-size: 100% 100%;
        }

        .name {
          margin-left: 16rpx;
          color: #ffffff;
          font-size: 40rpx;
        }
      }

      .card {
        width: 660rpx;
        height: 100rpx;
        margin: 0 auto;
        // background-color: tan;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        padding: 0 36rpx;

        .store {
          display: flex;
          align-items: center;

          .icon {
            width: 52rpx;
            height: 52rpx;
            margin-right: 18rpx;
     
            &.diamond {
              .hm-img("@{baseUrl}/my/diamond.png")
            }
          }

          // box-sizing: border-box;
          .name {
            color: #ffffff;
            // font-size: 32rpx;
            width: 300rpx;
            font-size: 24rpx;
            .hm-ellipsis();
          }

        }

        .btn {
          width: 162rpx;
          height: 50rpx;
          flex-shrink: 0;
          background: #edd8af;
          border-radius: 48rpx;
          .hm-flex();
          color: #ffffff;
          font-size: 24rpx;
          .more{
            width: 10rpx;
            height: 18rpx;
            margin-left: 12rpx;
            .hm-img("@{baseUrl}/my/more-icon-2.png");
          }
        }
      }
    }

    .account-card {
      margin: 24rpx auto;
      width: 686rpx;
      height: 134rpx;
      background: #ffffff;
      border-radius: 8rpx;

      display: flex;
      justify-content: space-around;
      align-items: center;

      .account {
        flex: 1;
        .hm-flex();
        flex-direction: column;

        .name {
          margin-bottom: 12rpx;
          font-size: 24rpx;
          color: rgba(0, 0, 0, 0.40);

        }

        .data {
          color: #333333;
          font-weight: 500;
          font-size: 32rpx;
        }
      }
    }

    .order-card {
      margin: 24rpx auto;
      padding: 24rpx;
      box-sizing: border-box;
      width: 686rpx;
      height: 250rpx;
      background: #ffffff;
      border-radius: 8rpx;

      .header {
        height: 56rpx;
        padding-bottom: 12rpx;
        display: flex;
        justify-content: space-between;
        border-bottom: 1rpx solid #f2f2f2;

        .name {
          color: #333333;
          font-size: 28rpx;
          display: flex;
          justify-content: flex-start;
          align-items: center;

          .order-icon {
            margin-right: 8rpx;

            width: 32rpx;
            height: 32rpx;
            .hm-img("@{baseUrl}/my/order-icon.png");

          }
        }

        .desc {
          color: rgba(0, 0, 0, 0.40);
          font-size: 24rpx;
          display: flex;
          justify-content: flex-start;
          align-items: center;


          .more-icon {
            margin-left: 4rpx;
            width: 20rpx;
            height: 20rpx;
            .hm-img("@{baseUrl}/my/more-icon.png");

          }
        }
      }

      .status {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 144rpx;

        .statu {
          display: flex;
          justify-content: center;
          align-items: center;
          flex-direction: column;
            flex:1;
            height: 100%;
          .icon {
            margin-top: 12rpx;

            &.order-a {
              width: 56rpx;
              height: 48rpx;
              .hm-img("@{baseUrl}/my/order-a.png");
            }

            &.order-b {
              width: 52rpx;
              height: 48rpx;
              .hm-img("@{baseUrl}/my/order-b.png");
            }

            &.order-c {
              width: 52rpx;
              height: 54rpx;
              .hm-img("@{baseUrl}/my/order-c.png");
            }

            &.order-d {
              width: 48rpx;
              height: 48rpx;
              .hm-img("@{baseUrl}/my/order-d.png");
            }
          }

          .name {
            margin-top: 12rpx;
            color: rgba(0, 0, 0, 0.40);
            font-size: 24rpx;
          }
        }
      }
    }

    .func {
      margin: 24rpx auto;
      width: 686rpx;
      min-height: 88rpx;
      background: #ffffff;
      border-radius: 8rpx;
      padding: 0 24rpx;
      box-sizing: border-box;

      .func-item {
        box-sizing: border-box;
        height: 88rpx;
        display: flex;
        justify-content: space-between;
        align-items: center;

        &.border {
          border-bottom: 2rpx solid #f2f2f2;
        }

        .body {
          .hm-flex();

          .icon {
            width: 32rpx;
            height: 32rpx;
            margin-right: 8rpx;

            &.cart-icon {
              .hm-img("@{baseUrl}/my/cart-icon.png")
            }

            &.person-icon {
              .hm-img("@{baseUrl}/my/preson-icon.png")
            }

            &.shiefld-icon {
              .hm-img("@{baseUrl}/my/shiefld-icon.png")
            }

            &.location-icon {
              .hm-img("@{baseUrl}/my/location-icon.png")
            }
          }

          .name {
            color: #333333;
            font-size: 28rpx;
          }
        }

        .more {
          width: 20rpx;
          height: 20rpx;
          .hm-img("@{baseUrl}/my/more-icon.png");
        }
      }
    }
 
  }
}